<script type="text/javascript">

                            
    loaderVisible = true;
    VFResult = "";
    VFProxy = "";
    VFThumbnail = "";

    function vidfetchSearching()
    {
        $('#vidfetchLoader applet').width(0);
        $('#vidfetchLoader applet').height(0);
        $('#vidfetchSearching').show();
    }

    function vidfetchAppend(type,name,index,title)
    {

        if(loaderVisible)
        {
            $('#vidfetchSearching').hide();
            $('#vidfetchLinks').show();
            loaderVisible = false;
        }

        name = name.replace("Low Quality","Baja Calidad");
        name = name.replace("Medium Quality","Calidad Media");
        name = name.replace("High Quality","Alta Calidad");
        title = title + "(descargatump3.com)";
        var proxyLink = VFProxy+index+"/"+title+"."+type.toLowerCase();
        $('.vthumb').html('<img src="'+VFThumbnail+'" alt="'+title+'" />');
        $('.vtitle').html(title);
        name = type + " de "+name;
        if(type == 'MP3' || type == 'AAC')
        {
            $('#vidfetchLinks ul.audio').append('<li class="type'+type+'"><a href="'+proxyLink+'"><span>'+name+'</span></a></li>');
        } else {
            $('#vidfetchLinks ul.video').append('<li class="type'+type+'"><a href="'+proxyLink+'"><span>'+name+'</span></a></li>');
        }

    }

    function vidfetchDone()
    {
        if(!loaderVisible)
        {
            // set thumbnail


            return;
        }

        $('#vidfetchSearching').hide();
        $('#vidfetchError').show();
    }

    function vidfetchProxy(url)
    {

    }

    function vidfetchError()
    {
        $('#vidfetchSearching').hide();
        $('#vidfetchError').show();
    }
</script>

<div id="content">
    <div class="clear"></div>
    <?php
    if (isset($urlYoutube)) {
        ?>
        <div class="gboxtop"></div>
        <div class="gbox">

            <div id="vidfetchLoader">
                <center>
                    <?php
                    echo $aplet;
                    ?>
                </center>
            </div>

            <div id="vidfetchSearching" >
                <center>
                    <img src="<?php echo $siteURL; ?>images/loader.gif" alt="loading" />
                    <br />
                    <span style="color: rgb(204, 51, 51);">Para descargar los videos, por favor haga clic en '<b>Ejecutar</b>' cuando se le solicite.<br> Marque la casilla '<b>Siempre confiar en el contenido de la editorial</b>' para descargar sin problemas en el futuro.</span>
                </center>

                <script type="text/javascript">
                    jQuery(document).ready(function() {
                        setTimeout("vidfetchDone()",60000);
                    });

                </script>
            </div>

            <div id="vidfetchLinks"   style="display:none;">
                <h3>Descargar Video</h3>
                <ul class="video"></ul>
                <h3>Descargar Audio</h3>
                <ul class="audio"></ul>
                <h3 style="color: red;font-weight: bold;text-align: center">"No cierre la ventana asta que termine la descarga"</h3>
            </div>


            <div id="vidfetchError"  style="display:none;">
                <center>
                    <?php Flash::error('No hay video en linea o este video esta protegico.<br/>Please make shore you selected yes when prompted for \'<b>Always trust content from the publisher</b>\''); ?>
                </center>
            </div>



        </div>

        <?php
    } elseif (isset($error) && !empty($error)) {
        ?>
        <center><h3><?php Flash::error($error); ?> </h3></center>
        <?php
    }
    ?>
</div>
<div id="publicidad"align="center" style="padding-bottom: 10px;">
<!-- BEGIN SMOWTION TAG - 336x280 - DO NOT MODIFY -->
<script type="text/javascript"><!--
smowtion_size = "336x280";
smowtion_section = "3479186";
//-->
</script>
<script type="text/javascript"
src="http://ads.smowtion.com/ad.js?s=3479186&amp;z=336x280">
</script>
<!-- END SMOWTION TAG - 336x280 - DO NOT MODIFY -->
</div>
